#include <iostream>
using namespace std;

double f2(int n){
    double r = 2.0 * n;
    return r;
}
void estimate(int lines, double (*pf)(int)){
    double b = (*pf)(lines);
    std::cout << "b = " << b << std::endl;
}

int main() {
    estimate(3, f2);
}